cssselector: Make specificity handling a vfunc
authorBenjamin Otte <otte@redhat.com>
Mon, 8 Dec 2014 05:46:38 +0000 (06:46 +0100)
committerBenjamin Otte <otte@redhat.com>
Wed, 10 Dec 2014 02:49:40 +0000 (03:49 +0100)
commit06b0b47d04a5fd91ba25aaabc85795bbdeaa4b0b
treeeb9e6ac97921fa105c3136ba461bdb8569aab2ea
parent371a60185860e6c285f28b786b2b987119dd700b
cssselector: Make specificity handling a vfunc

The new region selector tracks more than just one soimple selector, so
it requires some more advanced specificity tracking.

Technically, this is still not correct, because it will report the same
specificity for
  tab:sorted
and
  tab:sorted:sorted
(and the second selector will be printed as the first) but this is
regions, so meh.
gtk/gtkcssselector.c